import { useRequest } from "ahooks";
import { adminV1AdminControllerMine } from "@/services/auto/adminAdmin";

const useUser = () => {
  const {loading, data, runAsync} = useRequest(adminV1AdminControllerMine, {
    manual: true,
  });

  return {
    loading,
    data: data!,
    runAsync,
  };
};

export default useUser;
